<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>商品详情</title>
		<link rel="stylesheet" type="text/css" href="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/css/common.css" />
		<link rel="stylesheet" type="text/css" href="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/css/content.css" />
		<script type='text/javascript' src='http://localhost/gks/1113/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/gks/1113/hdphp/hdphp/Extend/Org/hdjs/hdui/css/hdui.css' rel='stylesheet' media='screen'>
<script src='http://localhost/gks/1113/hdphp/hdphp/Extend/Org/hdjs/hdui/js/hdui.js'></script>
<link href='http://localhost/gks/1113/hdphp/hdphp/Extend/Org/hdjs/hdvalidate/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/gks/1113/hdphp/hdphp/Extend/Org/hdjs/hdvalidate/js/hdvalidate.js'></script>
<script src='http://localhost/gks/1113/hdphp/hdphp/Extend/Org/cal/lhgcalendar.min.js'></script>
<script src='http://localhost/gks/1113/hdphp/hdphp/Extend/Org/hdjs/hdslide/js/hdslide.js'></script>
<script type='text/javascript'>
HOST = 'http://localhost';
ROOT = 'http://localhost/gks/1113/shop';
WEB = 'http://localhost/gks/1113/shop/index.php';
URL = 'http://localhost/gks/1113/shop/index.php/Index/Index/content/gid/1';
APP = 'http://localhost/gks/1113/shop/HSHOP';
COMMON = 'http://localhost/gks/1113/shop/HSHOP/Common';
HDPHP = 'http://localhost/gks/1113/hdphp/hdphp';
HDPHPDATA = 'http://localhost/gks/1113/hdphp/hdphp/Data';
HDPHPEXTEND = 'http://localhost/gks/1113/hdphp/hdphp/Extend';
MODULE = 'http://localhost/gks/1113/shop/index.php/Index';
CONTROLLER = 'http://localhost/gks/1113/shop/index.php/Index/Index';
ACTION = 'http://localhost/gks/1113/shop/index.php/Index/Index/content';
STATIC = 'http://localhost/gks/1113/shop/Static';
HDPHPTPL = 'http://localhost/gks/1113/hdphp/hdphp/Lib/Tpl';
VIEW = 'http://localhost/gks/1113/shop/HSHOP/Index/View';
PUBLIC = 'http://localhost/gks/1113/shop/HSHOP/Index/View/Public';
CONTROLLERVIEW = 'http://localhost/gks/1113/shop/HSHOP/Index/View/Index';
HISTORY = 'http://localhost/gks/1113/shop/index.php/Index/Index/category/cid/10/s/0-0';
</script>
		<script type="text/javascript" src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/js/content.js"></script>
		<script type="text/javascript" src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/js/list.js"></script>
	</head>
	<body>
		<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><div id="top_out">
	<div class="out">
		<div class="top_ad center">
			<a href="">
				<img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/top_ad.jpg" />
			</a>
		</div>
	</div>
	<div class="out_down">
		<div class="top center">
			<ul class="fl">
				<li><a href="javascript:;">邀请好友</a> |
				</li>
				<li><a href="javascript:;" onclick="shoucang(document.title,window.location)">加入收藏</a>
				</li>
			</ul>
			<ul class="fr">
				
				<?php if($_SESSION['user']['uid']){?>
					<li>
						<span class="hello">您好，</span><a href="javascript"><?php echo $_SESSION['user']['username'];?></a>
					</li>
					<li>
						<a href="<?php echo U('Login/out');?>">[退出]</a>
					</li>
				<?php  }else{ ?>
				<li>
					<span class="hello">您好，欢迎来到珍品网！</span>
				</li>
				<li>
					<a href="<?php echo U('Login/login');?>">[ 登录 ]</a>
				</li>
				<li>
					<a href="<?php echo U('Login/reg');?>">[ 免费注册 ]</a> |
				</li>
				<?php }?>
				<li>
					<a href="<?php echo U('member');?>">我的订单</a> |
				</li>
				<li id="shop">
					<a href="<?php echo U('Cart/index');?>" class="shop">购物车<span class="count" id="totalNum"><?php if($_SESSION['cart']['totalNum']){?><?php echo $_SESSION['cart']['totalNum'];?><?php  }else{ ?>0<?php }?></span>件商品</a>
					<div class="second">
						<?php if($_SESSION['cart']['totalNum']){?>
							<ul>
								<li><h3>最新加入的商品</h3></li>
								<?php $hd["list"]["c"]["total"]=0;if(isset($_SESSION['cart']['goods']) && !empty($_SESSION['cart']['goods'])):$_id_c=0;$_index_c=0;$lastc=min(1000,count($_SESSION['cart']['goods']));
$hd["list"]["c"]["first"]=true;
$hd["list"]["c"]["last"]=false;
$_total_c=ceil($lastc/1);$hd["list"]["c"]["total"]=$_total_c;
$_data_c = array_slice($_SESSION['cart']['goods'],0,$lastc);
if(count($_data_c)==0):echo "";
else:
foreach($_data_c as $key=>$c):
if(($_id_c)%1==0):$_id_c++;else:$_id_c++;continue;endif;
$hd["list"]["c"]["index"]=++$_index_c;
if($_index_c>=$_total_c):$hd["list"]["c"]["last"]=true;endif;?>

									<li id="<?php echo $c['cart_id'];?>">
										<img src="http://localhost/gks/1113/shop/<?php echo $c['img'];?>" alt="" />
										<a href="<?php echo U('Index/content',array('gid'=>$c['gid']));?>" class="goods_name"><?php echo $c['goods_name'];?> <?php echo $c['attr_value'];?></a>
										<span class="price">￥ <?php echo $c['price'];?></span>
										<span class="num"> x <?php echo $c['num'];?></span>
										<a href="javascript:;" class="del" onclick="delGoods('<?php echo $c['cart_id'];?>')">删除</a>
									</li>
								<?php $hd["list"]["c"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
								<li class="account">
									<p>
										共<span class="num" id="goodsNum"><?php echo $_SESSION['cart']['totalNum'];?></span>件商品&nbsp;&nbsp;&nbsp;&nbsp;
										共计<span class="price" >￥<font style="font-size: 21px;"id="goodsPrice"><?php echo $_SESSION['cart']['totalPrice'];?></font></span>
									</p>
									<a href="<?php echo U('Cart/index');?>" class="continue">去购物车结算></a>
								</li>
							</ul>
						<?php  }else{ ?>
							<div class="null">购物车内还没有商品，赶紧选购吧！</div>
						<?php }?>
						
					</div>
				</li>
			</ul>
		</div>
	</div>
</div>
<div id="search" class="center">
	<div class="left fl">
		<a href="<?php echo U('index');?>" class="logo">
			<img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/logo.jpg" alt="" />
		</a>
	</div>
	<div class="middle fl">
		<form action="" method="get">
			<input type="text" name="keywords" value="UGG" class="fl" onclick="this.value='';" onblur="this.value='UGG'" />
			<input type="submit" value="搜索" class="fl" />
		</form>
	</div>
	<div class="right fr">

	</div>
</div>
<div id="nav_out">
	<div class="nav center">
		<div class="all_goods">
			<a href="" class="menu">全部商品分类</a>
			<div class="second" >
				<div class="sec_menu">
					<dl class="dl">
						<dt><i></i><a href="">品牌</a><b></b></dt>
						<dd>
							<?php $hd["list"]["b"]["total"]=0;if(isset($brand) && !empty($brand)):$_id_b=0;$_index_b=0;$lastb=min(3,count($brand));
$hd["list"]["b"]["first"]=true;
$hd["list"]["b"]["last"]=false;
$_total_b=ceil($lastb/1);$hd["list"]["b"]["total"]=$_total_b;
$_data_b = array_slice($brand,0,$lastb);
if(count($_data_b)==0):echo "";
else:
foreach($_data_b as $key=>$b):
if(($_id_b)%1==0):$_id_b++;else:$_id_b++;continue;endif;
$hd["list"]["b"]["index"]=++$_index_b;
if($_index_b>=$_total_b):$hd["list"]["b"]["last"]=true;endif;?>

								<a href="<?php echo U('Index/brand',array('bid'=>$b['brand_id']));?>"><?php echo $b['brand_name'];?></a>
							<?php $hd["list"]["b"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
						</dd>
					</dl>
					<div class="second_list">
						<ul>
							<?php $hd["list"]["b"]["total"]=0;if(isset($brand) && !empty($brand)):$_id_b=0;$_index_b=0;$lastb=min(11,count($brand));
$hd["list"]["b"]["first"]=true;
$hd["list"]["b"]["last"]=false;
$_total_b=ceil($lastb/1);$hd["list"]["b"]["total"]=$_total_b;
$_data_b = array_slice($brand,0,$lastb);
if(count($_data_b)==0):echo "";
else:
foreach($_data_b as $key=>$b):
if(($_id_b)%1==0):$_id_b++;else:$_id_b++;continue;endif;
$hd["list"]["b"]["index"]=++$_index_b;
if($_index_b>=$_total_b):$hd["list"]["b"]["last"]=true;endif;?>

								<li><a href="<?php echo U('Index/brand',array('bid'=>$b['brand_id']));?>"><img src="http://localhost/gks/1113/shop/<?php echo $b['brand_logo'];?>" alt="<?php echo $b['brand_name'];?>" /></a></li>
							<?php $hd["list"]["b"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
							<li><a href="<?php echo U('Index/brand');?>"><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/brand/24.png" alt=""></a></li>
						</ul>
					</div>
				</div>
				<?php $hd["list"]["c1"]["total"]=0;if(isset($category) && !empty($category)):$_id_c1=0;$_index_c1=0;$lastc1=min(1000,count($category));
$hd["list"]["c1"]["first"]=true;
$hd["list"]["c1"]["last"]=false;
$_total_c1=ceil($lastc1/1);$hd["list"]["c1"]["total"]=$_total_c1;
$_data_c1 = array_slice($category,0,$lastc1);
if(count($_data_c1)==0):echo "";
else:
foreach($_data_c1 as $key=>$c1):
if(($_id_c1)%1==0):$_id_c1++;else:$_id_c1++;continue;endif;
$hd["list"]["c1"]["index"]=++$_index_c1;
if($_index_c1>=$_total_c1):$hd["list"]["c1"]["last"]=true;endif;?>

					<div class="sec_menu">
						<dl class="dl">
							<dt><i></i><a href="<?php echo U('Index/Index/category',array('cid'=>$c1['cid']));?>"><?php echo $c1['cat_name'];?></a><b></b></dt>
							<dd>
								<?php $hd["list"]["c2"]["total"]=0;if(isset($c1['_data']) && !empty($c1['_data'])):$_id_c2=0;$_index_c2=0;$lastc2=min(3,count($c1['_data']));
$hd["list"]["c2"]["first"]=true;
$hd["list"]["c2"]["last"]=false;
$_total_c2=ceil($lastc2/1);$hd["list"]["c2"]["total"]=$_total_c2;
$_data_c2 = array_slice($c1['_data'],0,$lastc2);
if(count($_data_c2)==0):echo "";
else:
foreach($_data_c2 as $key=>$c2):
if(($_id_c2)%1==0):$_id_c2++;else:$_id_c2++;continue;endif;
$hd["list"]["c2"]["index"]=++$_index_c2;
if($_index_c2>=$_total_c2):$hd["list"]["c2"]["last"]=true;endif;?>

									<?php $hd["list"]["c3"]["total"]=0;if(isset($c2['_data']) && !empty($c2['_data'])):$_id_c3=0;$_index_c3=0;$lastc3=min(3,count($c2['_data']));
$hd["list"]["c3"]["first"]=true;
$hd["list"]["c3"]["last"]=false;
$_total_c3=ceil($lastc3/1);$hd["list"]["c3"]["total"]=$_total_c3;
$_data_c3 = array_slice($c2['_data'],0,$lastc3);
if(count($_data_c3)==0):echo "";
else:
foreach($_data_c3 as $key=>$c3):
if(($_id_c3)%1==0):$_id_c3++;else:$_id_c3++;continue;endif;
$hd["list"]["c3"]["index"]=++$_index_c3;
if($_index_c3>=$_total_c3):$hd["list"]["c3"]["last"]=true;endif;?>

									<a href="<?php echo U('Index/Index/category',array('cid'=>$c3['cid']));?>"><?php echo $c3['cat_name'];?></a>
									<?php $hd["list"]["c1"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
								<?php $hd["list"]["c2"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
							</dd>
						</dl>
						<div class="second_list">
							<?php $hd["list"]["c3"]["total"]=0;if(isset($c1['_data']) && !empty($c1['_data'])):$_id_c3=0;$_index_c3=0;$lastc3=min(1000,count($c1['_data']));
$hd["list"]["c3"]["first"]=true;
$hd["list"]["c3"]["last"]=false;
$_total_c3=ceil($lastc3/1);$hd["list"]["c3"]["total"]=$_total_c3;
$_data_c3 = array_slice($c1['_data'],0,$lastc3);
if(count($_data_c3)==0):echo "";
else:
foreach($_data_c3 as $key=>$c3):
if(($_id_c3)%1==0):$_id_c3++;else:$_id_c3++;continue;endif;
$hd["list"]["c3"]["index"]=++$_index_c3;
if($_index_c3>=$_total_c3):$hd["list"]["c3"]["last"]=true;endif;?>

								<dl>
									<dt><a href="<?php echo U('Index/Index/category',array('cid'=>$c3['cid']));?>"><?php echo $c3['cat_name'];?></a></dt>
									<dd>
										<?php $hd["list"]["c4"]["total"]=0;if(isset($c3['_data']) && !empty($c3['_data'])):$_id_c4=0;$_index_c4=0;$lastc4=min(1000,count($c3['_data']));
$hd["list"]["c4"]["first"]=true;
$hd["list"]["c4"]["last"]=false;
$_total_c4=ceil($lastc4/1);$hd["list"]["c4"]["total"]=$_total_c4;
$_data_c4 = array_slice($c3['_data'],0,$lastc4);
if(count($_data_c4)==0):echo "";
else:
foreach($_data_c4 as $key=>$c4):
if(($_id_c4)%1==0):$_id_c4++;else:$_id_c4++;continue;endif;
$hd["list"]["c4"]["index"]=++$_index_c4;
if($_index_c4>=$_total_c4):$hd["list"]["c4"]["last"]=true;endif;?>

											<a href="<?php echo U('Index/Index/category',array('cid'=>$c4['cid']));?>"><?php echo $c4['cat_name'];?></a>
										<?php $hd["list"]["c3"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
									</dd>
								</dl>
							<?php $hd["list"]["c4"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
							<div class="quick"><a href="<?php echo U('Index/Index/category',array('cid'=>$c1['cid']));?>">进入<?php echo $c1['cat_name'];?>频道页>></a></div>
						</div>
					</div>
				<?php $hd["list"]["c3"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
			</div>
		</div>
		<ul class="middle fl">
			<li><a href="<?php echo U('index');?>" class="cur">首页</a>
			</li>
			<li><a href="">品牌旗舰店</a>
			</li>
			<li><a href="">最新上架</a>
			</li>
			<li><a href="">奢侈品特卖</a>
			</li>
			<li><a href="">礼品卡</a>
			</li>
		</ul>
	</div>
</div>
		<div id="content">
			<div class="title">
				<p>
					<a href="<?php echo U('category',array('cid'=>$cate[2]['cid']));?>" class="index"><?php echo $cate[2]['cat_name'];?></a> > 
					<a href="<?php echo U('category',array('cid'=>$cate[0]['cid']));?>" class="cat"><?php echo $cate[0]['cat_name'];?></a> > 
					<a href="<?php echo U('brand',array('brand_id'=>$goods['brand_id']));?>" class="brand">Coach</a> > 
					<span><?php echo $goods['goods_name'];?></span>
				</p>
			</div>
			<div class="content">
				<div class="left">
					<div class="left_img">
						<a href="javascript:;" class="up" i='1' onclick="nextPic(this)"></a>
						<div class="pic">
							<ul id="thumb">
								<?php $hd["list"]["gg"]["total"]=0;if(isset($goodsGallery) && !empty($goodsGallery)):$_id_gg=0;$_index_gg=0;$lastgg=min(1000,count($goodsGallery));
$hd["list"]["gg"]["first"]=true;
$hd["list"]["gg"]["last"]=false;
$_total_gg=ceil($lastgg/1);$hd["list"]["gg"]["total"]=$_total_gg;
$_data_gg = array_slice($goodsGallery,0,$lastgg);
if(count($_data_gg)==0):echo "";
else:
foreach($_data_gg as $key=>$gg):
if(($_id_gg)%1==0):$_id_gg++;else:$_id_gg++;continue;endif;
$hd["list"]["gg"]["index"]=++$_index_gg;
if($_index_gg>=$_total_gg):$hd["list"]["gg"]["last"]=true;endif;?>

									<li onmouseover="image(this)"  jqimg="http://localhost/gks/1113/shop/<?php echo $gg['img_original'];?>" mimg="http://localhost/gks/1113/shop/<?php echo $gg['img_url'];?>">
										<a href="javascript:;"><img src="http://localhost/gks/1113/shop/<?php echo $gg['thumb_url'];?>"/></a>
									</li>
								<?php $hd["list"]["gg"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
							</ul>
						</div>
						<a href="javascript:;" class="down" i='-1' onclick="nextPic(this)"></a>
					</div>
					<div class="right_img">
						<div class="max_img">
							<a href="javascript:;">
								<?php $hd["list"]["gg"]["total"]=0;if(isset($goodsGallery) && !empty($goodsGallery)):$_id_gg=0;$_index_gg=0;$lastgg=min(1,count($goodsGallery));
$hd["list"]["gg"]["first"]=true;
$hd["list"]["gg"]["last"]=false;
$_total_gg=ceil($lastgg/1);$hd["list"]["gg"]["total"]=$_total_gg;
$_data_gg = array_slice($goodsGallery,0,$lastgg);
if(count($_data_gg)==0):echo "";
else:
foreach($_data_gg as $key=>$gg):
if(($_id_gg)%1==0):$_id_gg++;else:$_id_gg++;continue;endif;
$hd["list"]["gg"]["index"]=++$_index_gg;
if($_index_gg>=$_total_gg):$hd["list"]["gg"]["last"]=true;endif;?>

									<img src="http://localhost/gks/1113/shop/<?php echo $gg['img_url'];?>" id="img">
								<?php $hd["list"]["gg"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
								<div id="sekuai"></div>
								<div id="gaizi" style="cursor:crosshair"></div>
							</a>
						</div>
						<div id="right">
							<?php $hd["list"]["gg"]["total"]=0;if(isset($goodsGallery) && !empty($goodsGallery)):$_id_gg=0;$_index_gg=0;$lastgg=min(1,count($goodsGallery));
$hd["list"]["gg"]["first"]=true;
$hd["list"]["gg"]["last"]=false;
$_total_gg=ceil($lastgg/1);$hd["list"]["gg"]["total"]=$_total_gg;
$_data_gg = array_slice($goodsGallery,0,$lastgg);
if(count($_data_gg)==0):echo "";
else:
foreach($_data_gg as $key=>$gg):
if(($_id_gg)%1==0):$_id_gg++;else:$_id_gg++;continue;endif;
$hd["list"]["gg"]["index"]=++$_index_gg;
if($_index_gg>=$_total_gg):$hd["list"]["gg"]["last"]=true;endif;?>

								<img src="http://localhost/gks/1113/shop/<?php echo $gg['img_original'];?>" id="rpic">
							<?php $hd["list"]["gg"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
						</div>
					</div>
				</div>
				<div class="right">
					<dl>
						<dt>
							<a href="" class="brand" target="_blank">Coach</a>
							<h1><?php echo $goods['goods_name'];?></h1>
						</dt>
						<dd class="odd">
							<div class="dt">商品编号</div>
							<div class="dd"><?php echo $goods['goods_sn'];?></div>
						</dd>
						<dd class="odd">
							<div class="dt">珍品价</div>
							<div class="dd">
								<span class="price"><font>￥</font><?php echo $goods['goods_price'];?></span>
								市场价  <del>￥<?php echo $goods['market_price'];?></del>
							</div>
						</dd>
						<dd class="odd">
							<span style="float: right;width: 551px;">
								<var>满减</var>
								<span style="color:#ff4400;padding-left:5px;">本商品参加满999减100/满1499减150/满2999减350/满4999减700/满6999减1000/满9999减1200/满14999减1800</span>
								<a href="javascript:;" target="_blank" style="color: #FF4400;margin-left: 10px;">活动详情>></a>
							</span>
							促销信息
						</dd>
						<dd class="odd">
							<dl>
								<dd class="p_line"></dd>
								<?php $hd["list"]["a"]["total"]=0;if(isset($attr) && !empty($attr)):$_id_a=0;$_index_a=0;$lasta=min(1000,count($attr));
$hd["list"]["a"]["first"]=true;
$hd["list"]["a"]["last"]=false;
$_total_a=ceil($lasta/1);$hd["list"]["a"]["total"]=$_total_a;
$_data_a = array_slice($attr,0,$lasta);
if(count($_data_a)==0):echo "";
else:
foreach($_data_a as $key=>$a):
if(($_id_a)%1==0):$_id_a++;else:$_id_a++;continue;endif;
$hd["list"]["a"]["index"]=++$_index_a;
if($_index_a>=$_total_a):$hd["list"]["a"]["last"]=true;endif;?>

									<?php if($a['attr_type'] == 1){?>
										<dd class="spec">
											<div class="dt"><?php echo $a['attr_name'];?></div>
											<div class="dd">
												<?php $hd["list"]["v"]["total"]=0;if(isset($a['attr']) && !empty($a['attr'])):$_id_v=0;$_index_v=0;$lastv=min(1000,count($a['attr']));
$hd["list"]["v"]["first"]=true;
$hd["list"]["v"]["last"]=false;
$_total_v=ceil($lastv/1);$hd["list"]["v"]["total"]=$_total_v;
$_data_v = array_slice($a['attr'],0,$lastv);
if(count($_data_v)==0):echo "";
else:
foreach($_data_v as $key=>$v):
if(($_id_v)%1==0):$_id_v++;else:$_id_v++;continue;endif;
$hd["list"]["v"]["index"]=++$_index_v;
if($_index_v>=$_total_v):$hd["list"]["v"]["last"]=true;endif;?>

													<span id="<?php echo $v['id'];?>"><?php echo $v['attr_value'];?></span>
												<?php $hd["list"]["a"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
											</div>
										</dd>
									<?php }?>
								<?php $hd["list"]["v"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
								<form  method='post' onsubmit="return toOrder(this,'<?php echo $_SESSION['user']['uid'];?>')" class="addForm">
									<input type="hidden" name="gid" value="<?php echo $goods['gid'];?>">
									<input type="hidden" name="product_id" id='productId' value="">
									<dd>
										<div class="dt">数量</div>
										<div class="dd">
											<a href="javascript:;" class="rem" ks="-1" onclick="addNum(this)">-</a>
											<input type="text" name="num" value="1"/>
											<a href="javascript:;" class="add" ks="1" onclick="addNum(this)">+</a>
											<u id="tips" style="line-height:30px;padding-left:20px;color:#f00;"></u>
										</div>
									</dd>
									<dd class="p_line"></dd>
									<dd class="pay">
										<input type="submit" value="立即购买" class="buy">
										<a href="javascript:;" class="add_cart" onclick="addCart(this)">放入购物车</a>
									</dd>
								</form>
							</dl>
						</dd>
					</dl>
				</div>
			</div>
			<div class="detals">
				<div class="left">
					<div class="cate">
						<p class="title">推荐品牌</p>
						<ul>
							<?php $hd["list"]["b"]["total"]=0;if(isset($brand) && !empty($brand)):$_id_b=0;$_index_b=0;$lastb=min(12,count($brand));
$hd["list"]["b"]["first"]=true;
$hd["list"]["b"]["last"]=false;
$_total_b=ceil($lastb/1);$hd["list"]["b"]["total"]=$_total_b;
$_data_b = array_slice($brand,0,$lastb);
if(count($_data_b)==0):echo "";
else:
foreach($_data_b as $key=>$b):
if(($_id_b)%1==0):$_id_b++;else:$_id_b++;continue;endif;
$hd["list"]["b"]["index"]=++$_index_b;
if($_index_b>=$_total_b):$hd["list"]["b"]["last"]=true;endif;?>

								<li class="tui"><a href=""><?php echo $b['brand_name'];?></a></li>
							<?php $hd["list"]["b"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
						</ul>
					</div>
					<div class="cate">
						<p class="title">相关分类</p>
						<ul>
							<?php $hd["list"]["c"]["total"]=0;if(isset($category) && !empty($category)):$_id_c=0;$_index_c=0;$lastc=min(10,count($category));
$hd["list"]["c"]["first"]=true;
$hd["list"]["c"]["last"]=false;
$_total_c=ceil($lastc/1);$hd["list"]["c"]["total"]=$_total_c;
$_data_c = array_slice($category,0,$lastc);
if(count($_data_c)==0):echo "";
else:
foreach($_data_c as $key=>$c):
if(($_id_c)%1==0):$_id_c++;else:$_id_c++;continue;endif;
$hd["list"]["c"]["index"]=++$_index_c;
if($_index_c>=$_total_c):$hd["list"]["c"]["last"]=true;endif;?>

								<li class="tui"><a href=""><?php echo $c['cat_name'];?></a></li>
							<?php $hd["list"]["c"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
						</ul>
					</div>
					<div class="cate">
						<p class="title">销售排行榜</p>
						<ul>
							
								<li class="img">
									<a href=""><i>1</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>2</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>3</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>4</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>5</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>6</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>7</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>8</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>9</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
								<li class="img">
									<a href=""><i>10</i><img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/con1.jpg" alt=""></a>
									<a href="" class="name">迈克.科尔斯 深咖啡色 牛皮 女士手提斜挎包 ZXH </a>
									<span class="price">￥<span>1550</span></span>
								</li>
							
						</ul>
					</div>
				</div>
				<div class="right">
					<div class="title">
						<a href="" class="cur">商品详情</a>
						<a href="">评价详情(0)</a>
						<a href="">配送及售后</a>
					</div>
					<div class="info">
						<table class="table1">
							<tbody>
								<tr>
									<th class="w100">品牌</th>
									<td class="w350">Coach (蔻驰/寇兹) </td>
									<th class="w100">款号</th>
									<td class="w350">AS Q1303 </td>
								</tr>
								<tr>
									<th class="w100">品牌</th>
									<td class="w350">Coach (蔻驰/寇兹) </td>
									<th class="w100">款号</th>
									<td class="w350">AS Q1303 </td>
								</tr>
								<tr>
									<th class="w100">品牌</th>
									<td class="w350">Coach (蔻驰/寇兹) </td>
									<th class="w100">款号</th>
									<td class="w350">AS Q1303 </td>
								</tr>
								<tr>
									<th class="w100">品牌</th>
									<td class="w350">Coach (蔻驰/寇兹) </td>
									<th class="w100">款号</th>
									<td class="w350">AS Q1303 </td>
								</tr>
							</tbody>	
						</table>
					</div>
				</div>
			</div>
		</div>
		<div class="blank"></div>
		<div id="dialog">
			<p class="title">温馨提示</p>
			<span class="close" onclick="_close();"></span>
			<div class="frcg">
				<p class="u">
					<i></i>
					商品已经放入购物袋中！
				</p>
				<p class="d">
					<a href="<?php echo U('Cart/index');?>" class="buy">去购物车结算</a>
					<a href="javascript:;" onclick="_close();" class="continue">继续购物</a>
				</p>
			</div>
		</div>
		<!--未登录时触发登录注册层-->
	<div id="shade">
		<!--背景边框-->
		<div class="background"></div>
		<!--背景边框结束-->
	</div>
		<!--登录注册-->
	<div id="loginReg">
		<div class="title">
			<strong>您尚未登录</strong> <a href="javascript:;" class="close" onclick="loginClose()">X</a>
		</div>
		<div class="info">
			<div class="tab">
				<a href="javascript:;" class="loginBtn tabBtn cur" onclick="loginForm()">登录</a>
				<a href="javascript:;" class="regBtn tabBtn" onclick="regForm()">注册</a>
			</div>
			<form action="" method="post" id="loginForm" >
				<div class="con">
					<div class="line">
						<input type="text" name="username" placeholder="邮箱/手机号码/昵称" autocomplete="off"/>
					</div>
					<div class="line">
						<input type="password" name="password" placeholder="密码" autocomplete="off"/>
					</div>
					<div class="line" style="height: 17px;">
						<input type="hidden" name="remeberMe" value="0"/>
						<label class="chk"><input type="checkbox" name="remeberMe" value="1"/>记住我（下次自动登录）</label>
						<a href="" class="forget">忘记密码？</a>
					</div>
					<div class="line" style="margin-top: 10px;">
						<a href="javascript:;" onclick="userLogin()" class="button">登录</a>
					</div>
					<div class="go">
						<p>
							现在还不是奢品网用户？<a href="<?php echo U('Login/reg');?>">免费注册</a>
						</p>
					</div>
				</div>
				<div class="partner">
				<p>合作网站账户登录</p>
				<ul>
					<li>
						<a href="" title="QQ登录" class="qq"></a>
						<a href="" title="支付宝登陆" class="zhifubao"></a>
						<a href="" title="新浪微博" class="sina"></a>
					</li>
				</ul>
			</div>
			</form>	
			<form action="" method="post" id="regForm">
				<div class="con">
					<div class="line">
						<input type="text" name="username" placeholder="手机/邮箱" autocomplete="off"/>
					</div>
					<div class="line">
						<input type="password" name="password" placeholder="密码" autocomplete="off"/>
					</div>
					<div class="line">
						<input type="password" name="repassword" placeholder="确认密码" autocomplete="off"/>
					</div>
					<div class="chkCode line">
						<input type="text" name="code" placeholder="验证码" autocomplete="off"/>
						<a href="javascript:;" class="code" onclick="var oImg=document.getElementById('img');oImg.src='<?php echo U('code');?>&'+Math.random();">
							<img src="<?php echo U('code');?>" id="img"/>
							换一张
						</a>
					</div>
					<div class="line" style="height: 17px;">
						<label class="chk"><input type="checkbox" name="agree" value="1" id="agree" checked=""/>我已阅读并同意</label><u>奢品用户注册协议</u>
					</div>
					<div class="line" style="margin-top: 10px;">
						<a href="javascript:;" onclick="regUser()" class="button reg">注册</a>
					</div>
				</div>
			</form>
		</div>
	</div>
		<!--登录注册结束-->
	<!--登录注册触发层结束-->
		<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><div id="bottom_ad">
	<a href="" class="center">
		<img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/bottom_ad.jpg" alt="" />
	</a>
</div>
<div id="full">
	<div class="up">
		<div class="up_main">
			<ul>
				<li>
					<h2>新手帮助</h2>
				</li>
				<li><a href="">常见问题</a>
				</li>
				<li><a href="">联系客服</a>
				</li>
				<li><a href="">正品保障</a>
				</li>
				<li><a href="">全球同步</a>
				</li>
			</ul>
			<ul>
				<li>
					<h2>会员服务</h2>
				</li>
				<li><a href="">隐私条款</a>
				</li>
				<li><a href="">会员说明</a>
				</li>
				<li><a href="">余额说明</a>
				</li>
				<li><a href="">积分说明</a>
				</li>
				<li><a href="">优惠说明</a>
				</li>
			</ul>
			<ul>
				<li>
					<h2>付款方式</h2>
				</li>
				<li><a href="">货到付款</a>
				</li>
				<li><a href="">分期付款</a>
				</li>
				<li><a href="">在线支付</a>
				</li>
				<li><a href="">线下支付</a>
				</li>
			</ul>
			<ul>
				<li>
					<h2>配送政策</h2>
				</li>
				<li><a href="">配送范围及时间</a>
				</li>
				<li><a href="">全场免运费</a>
				</li>
			</ul>
			<ul>
				<li>
					<h2>售后服务</h2>
				</li>
				<li><a href="">退换货政策</a>
				</li>
				<li><a href="">退款政策</a>
				</li>
			</ul>
			<ul style="width: 190px;">
				<li>
					<h2>客服中心</h2>
				</li>
				<li><span class="tel"></span>
				</li>
				<li>周一至周日：09:00-22:00</li>
				<li><a href="">在线客服</a>
				</li>
			</ul>
		</div>
	</div>
</div>
<div id="last" class="center">
	<p>
		<a href="">小珍课堂</a> |
		<a href="">往期专题</a> |
		<a href="">所有商品</a> |
		<a href="">奢侈品购物</a> |
		<a href="">奢侈品资讯</a> |
		<a href="">公司新闻</a> |
		<a href="">企业客户</a> |
		<a href="">关于我们</a> |
		<a href="">联系我们</a> |
		<a href="">人才招聘</a> |
		<a href="">友情链接</a> |
		<a href="">收藏珍品网</a> |
	</p>
	<p>
		Copyright © 2011-2014 珍品网-中国领先的奢侈品购物网站 | 世界顶级奢侈品品牌网购网站
	</p>
	<p>
		京ICP证110290号 | 京ICP备11014626号-5 | 京公网安备11010502025723号 | 食品流通许可证SP1101121310106363(1-1) | 出版物经营许可证 新出发京批字第直130121号
	</p>
	<p>
		<img src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/img/bottom_brand_bg.jpg" alt="" />
	</p>
</div>
		<script type="text/javascript" src="http://localhost/gks/1113/shop/HSHOP/Index/View/Index/js/index.js"></script>
		<script type="text/javascript" src="http://localhost/gks/1113/shop/HSHOP/Index/View/Cart/js/index.js"></script>
	</body>
</html>